package models;

import play.*;
import play.db.jpa.*;

import javax.persistence.*;
import java.util.*;
import controllers.CRUD.Hidden;

@Entity
public class Challenger extends Model {
	
	@ManyToOne
	public Developer applicationId;
	
	public String uniqueId;
	
	public String title;
	
	public String description;
	
	
	public String imageUrl;
	@Hidden
	public boolean completed;
	
	
	@ManyToMany(cascade=CascadeType.ALL)
	public Set<Reward> rewards = new HashSet();
	
	
	@Override
  public String toString() {
    return this.title;
  }
	
	
}

